<template>
  <view class="container">
    
    <view class="u-content">
      <u-parse :content="info.content"></u-parse>
    </view>
  </view>
</template>

<script>
import { articleDetail } from "../../api/index";

export default {
  data() {
    return {
      list: [],
      info:{}
    };
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.getDetail(options.id);
    wx.showShareMenu({
				withShareTicket: true,
				menus: ["shareAppMessage", "shareTimeline"]
			})
  },

  methods: {
    getDetail(id) {
      articleDetail(id).then((res) => {
        console.log(res, "ssssssssssss");
        this.info = res.data;
      });
    },
  },
};
</script>

<style lang="scss" scoped>
// 项目内容
.container{
  padding: 15rpx;

}
.u-content{
  padding: 20rpx;
  border: thin solid #ededed;
  border-radius: 30rpx;
  box-shadow: #ededed 0 0 10rpx;
}
</style>
